home *** CD-ROM | disk | FTP | other *** search
- unit ntc_server_button;
- {
- Copyright (C) 2004 - 2006 Andrew Sprott
-
- http://astronomy.crysania.co.uk
- astro@trefach.co.uk
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- }
-
- interface
-
- uses
- SysUtils,
- controls,
- buttons,
- classes;
-
- const
- s_no_object=0;
- s_info=1;
- s_comms=2;
- s_focus=3;
- s_about=4;
- s_config=5;
- s_object=6;
- s_search=7;
- s_control=8;
- s_network=9;
- s_tracking=10;
- s_observer=11;
- s_sun=12;
- s_moon=13;
- s_planets=14;
- s_catalogs=15;
-
- type
- scope_button_type=integer;
-
- tscope_button=class(tbitbtn)
-
- constructor create(
- aowner:tcomponent); override;
-
- private
- { private declarations }
- public
- { Public declarations }
- control_type:scope_button_type;
- button_hidden,
- button_stuck:boolean;
- end;
-
- var
- current_button:tscope_button;
-
- implementation
-
- uses
- ntc_server_form;
-
- { -------------
- form handling
- ------------- }
-
- constructor tscope_button.create(
- aowner:tcomponent);
- begin
- inherited create(aowner);
- control_type:=s_no_object;
- button_hidden:=true;
- button_stuck:=false;
- end;
-
- end.
-